using BackData;
using Domain.DTOs.BOMs;
using MediatR;
using System.ComponentModel.DataAnnotations;

namespace Team.API.Applocation.Command.BOM
{
    /// <summary>
    /// 软删除BOM命令
    /// </summary>
    public class DeleteBOMCommand : IRequest<APIResult<bool>>
    {
        /// <summary>
        /// BOM主键ID
        /// </summary>
        [Required(ErrorMessage = "BOM ID不能为空")]
        public long Id { get; set; }

        /// <summary>
        /// 当前登录人姓名（用于记录操作日志）
        /// </summary>
        public string? CurrentUserName { get; set; }
    }
}

